package com.leoman.plz_p.module.api;


import com.leoman.plz_p.constants.Urls;
import com.leoman.plz_p.module.bean.BaseData;
import com.leoman.plz_p.module.bean.IdsBean;
import com.leoman.plz_p.module.bean.MapData;
import com.leoman.plz_p.module.bean.QuestionBean;

import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by guoh on 2018/7/22.
 */
public interface ExamApi {

    @POST(Urls.GET_QUESTION_DETAIL)
    Observable<BaseData<QuestionBean>> getQuestionDetail(@Query("id") String id);

    @POST(Urls.DELETE_MISTAKE_QUESTION)
    Observable<BaseData<MapData>> deleteMistakeQuestion(@Query("token") String token, @Query("id") String correct);

    @POST(Urls.GET_EXAM_IDS)
    Observable<BaseData<MapData>> getExamIds(@Query("token") String token, @Query("id") String id);

    @POST(Urls.SUBMIT_EXAM)
    Observable<BaseData<MapData>> submitExam(@Query("token") String token, @Query("examinId") String examinId, @Query("source") String source,
                                             @Query("total") String total, @Query("error") String error);

    @POST(Urls.GET_HAS_DO_EXAM_INFO)
    Observable<BaseData<IdsBean>> getHasDoExamInfo(@Query("token") String token, @Query("examinId") String examinId);
}
